package com.deyou.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.deyou.R;
import com.deyou.base.BaseActivity;
import com.deyou.util.AndroidUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PaymentTypeActivity extends BaseActivity {

    @BindView(R.id.iv_left_back)
    ImageView ivLeftBack;
    @BindView(R.id.tv_mid_title)
    TextView tvMidTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_payment_type);
        ButterKnife.bind(this);
        tvMidTitle.setText("收款方式");
    }

    @OnClick({R.id.iv_left_back, R.id.alipay_layout, R.id.bank_card_layout, R.id.paypal_layout})
    public void onViewClicked(View view) {
        Bundle bundle = new Bundle();
        switch (view.getId()) {
            case R.id.iv_left_back:
                finish();
                break;
            case R.id.alipay_layout:
                bundle.putInt("payment_type", 1);
                AndroidUtils.startNextActivity(PaymentTypeActivity.this, AddPaymentAccountActivity.class, bundle, false);
                break;
            case R.id.bank_card_layout:
//                bundle.putInt("payment_type", 2);
//                AndroidUtils.startNextActivity(PaymentTypeActivity.this, AddPaymentAccountActivity.class, bundle, false);
                break;
            case R.id.paypal_layout:
//                bundle.putInt("payment_type", 3);
//                AndroidUtils.startNextActivity(PaymentTypeActivity.this, AddPaymentAccountActivity.class, bundle, false);
                break;
        }
    }
}
